﻿using AutoMapper;
using Hicap.AuthorizationServer.Core.Models.Sys;

namespace Hicap.AuthorizationServer.Sys.DTO.Comapnys.LTMAutoMapper
{
    /// <summary>
    /// 配置Company的AutoMapper
    /// </summary>
    internal static class CompanyMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap<Company, CompanyListDto>();
            configuration.CreateMap<CompanyListDto, Company>();

            configuration.CreateMap<CompanyEditDto, Company>();
            configuration.CreateMap<Company, CompanyEditDto>();
        }
    }
}